package com.fbli.service.Impl;

import com.fbli.mapper.UpdatePasswordMapper;
import com.fbli.pojo.Users;
import com.fbli.service.UpdatePasswordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UpdatePasswordServiceImpl implements UpdatePasswordService {

    @Autowired
    private UpdatePasswordMapper updatePasswordMapper;

    @Override
    public Users selectByUsername(Users users) {
        Users users1 = updatePasswordMapper.selectByUsername(users);



        return users1;
    }

    @Override
    public void updatePassword(Users users) {


        updatePasswordMapper.updatePassword(users);

    }
}
